#!/bin/bash

read -p "请输入要检查的磁盘名称" dname

duseage=$(df -hT | grep "$dname$" | awk '{print $6}'| awk -F% '{print $1}')

if [ $duseage -gt 10 ];then
	echo "警告"
else
	echo "正常"
fi

